/**
* @file 详情组件
* @author wangcf
* @date 2017-01-07
*/
<template>
  <!--<div class="mui-scroll-wrapper" style="top: 44px;background: #f1f1f1;">
    <div class="mui-scroll">
    </div>
    需要滚动时添加
  </div>-->
  <div class="mui-scroll-wrapper" style="top: 168px;">
    <div class="mui-scroll">
      <div class="activity_detail">
        <div class="content">
          <ul>
            <li v-show="detailedit && detailedit.name">
              <label v-text="detailedit && detailedit.name"></label>
              <div class="detailEdit">
                <span v-show="detailedit && detailedit.isClose" @click="toClose()" class="mui-icon-load-delete iconFamily"></span>
                <!---->
              </div>
            </li>
            <li v-for="list in data">
              <label v-text="list.name"></label>
              <div v-text="list.typeText"></div>
            </li>
          </ul>
          <!--添加判断，没有附件时不显示-->
          <crm-file-list :file="filedata" :btn="btndata"></crm-file-list>
        </div>
      </div>
    </div>
  </div>
</template>
<style lang="less" rel="stylesheet/less">
  @import '../../css/module.css';
  @import 'crmDetail.css';
</style>
<script>
  import crmFileList from '../../components/crmFile/fileList.vue';
  var nativeApi = require('nativeApi');
  export default{
    components: {
      'crm-file-list': crmFileList
    },
    props: {
      data: {},   // 详情数据
      filedata: [],  // 详情文件,可直接打开
      btndata: [],  //  按钮
      detailedit: {}
    },
    methods: {
      toClose: function () {
        this.$dispatch('toClose');
      }
    },
    ready: function () {
      mui('.mui-scroll-wrapper').scroll();
    }
  }
</script>
